package com.elong.spring.advice;

import java.lang.reflect.Method;

import org.springframework.aop.MethodBeforeAdvice;

public class GreetingBeforeAdvice implements MethodBeforeAdvice{

    @Override
    public void before(Method method, Object[] args, Object target) throws Throwable {
	String clientName = (String) args[0];
	System.out.println("how are you ! Mr." + clientName + ".");
    }

}
